]> dgit.raspbian.org Git - gnome-shell.git/commit
windowPreview: Subclass a C actor
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 25 Feb 2021 15:04:30 +0000 (16:04 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 9 Mar 2021 15:40:49 +0000 (15:40 +0000)
commitafb56df55cc1889b5181df2dea4014ec85a45810
tree46a4a65cef4fcbeeda3d7c7fc847e6d15fa6f3a4
parent650e0960a272793b9051afc246015d17b1e20b84
windowPreview: Subclass a C actor

Move the get_preferred_width/height() and allocate() vfunc
implementations of WindowPreview to C, subclassing the C GObject from
JS.

This gets us another significant performance gain, allocating a
workspace with 20 windows now only takes 1.2 ms.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1743>
js/ui/windowPreview.js
src/meson.build
src/shell-window-preview.c [new file with mode: 0644]
src/shell-window-preview.h [new file with mode: 0644]